<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>微知</title>
    <link rel="stylesheet" href="__FORJS__/css/common/bootstrap.min.css"/>
    <link rel="stylesheet" href="__FORJS__/css/common/ali-icon-style.css"/>
    <link rel="stylesheet" href="__FORJS__/css/common/global.css"/>
    <link rel="stylesheet" href="__FORJS__/css/individual/hint_accredit.css"/>

</head>
<body>
<div class="acc_main">
    <img class="img_face" alt="" src="__FORJS__/images/logo_accredit.png">
    <h4>请绑定你的公众号</h4>
    <p>当前登录账号：<span>{$Think.session.user_login}</span></p>
    <div class="do_accredit">
        <p class="title_msg">点击下方按钮进行公众号授权</p>
        <a id="go_accredit" class="btn_main_accredit">
            <input type="hidden" value="" id="url">
            <span class="iconfont icon-weixin"></span>&nbsp;微信公众号授权登陆
        </a>
        <p class="agree"><input type="checkbox" id="agree"><label for="agree">&nbsp;我已满足下方两个条件</label></p>
        <hr />
        <p class="criteria">条件1）拥有一个正常使用的微信公众号</p>
        <a class="a_weixin" href="https://mp.weixin.qq.com/cgi-bin/readtemplate?t=register/step1_tmpl&lang=zh_CN" target="_blank">注册公众号</a>
        <p class="criteria">条件2）公众号必须打开公众号安全助手</p>
        <a class="a_weixin" href="https://mp.weixin.qq.com/cgi-bin/readtemplate?t=setting/safe-protect-faq2_tmpl&lang=zh_CN" target="_blank">了解如何开启</a>
    </div>
</div>
<script type="text/javascript" src="__FORJS__/js/common/jquery.min.js"></script>
<script type="text/javascript" src="__FORJS__/js/common/bootstrap.min.js"></script>
<script type="text/javascript" src="__FORJS__/js/common/bigwe_function.js"></script>
<script type="text/javascript" src="__FORJS__/js/individual/hint_accredit.js"></script>
<script>
    $.post("my_account/get_URL", {}, function(data){
        if(data == 'error'){
            return;
        }
        var jsonObj = eval('(' + data + ')');
        $('#url').val(jsonObj.url);
    });
</script>
</body>
</html>